<!DOCTYPE html>

<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="">
    </head>
    <body>
      
        <script>
      //传统方式用n进行分段

var message= "听党指挥" + "\n" + "能打胜仗"+ "n"+ "作风优良";

//es6方式

let message2 =`听党指挥

能打胜仗

作风优良;`

console.log(message);

console. log(message2);


        </script>
    </body>
</html>